// SBASSet.cpp : implementation file
//
#include "stdafx.h"
#include "resource.h"
#include "SBASSet.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CSBASSet property page

IMPLEMENT_DYNCREATE(CSBASSet, CPropertyPage)

CSBASSet::CSBASSet() : CPropertyPage(CSBASSet::IDD)
{
	//{{AFX_DATA_INIT(CSBASSet)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}

CSBASSet::~CSBASSet()
{
}

void CSBASSet::DoDataExchange(CDataExchange* pDX)
{
	CPropertyPage::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CSBASSet)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CSBASSet, CPropertyPage)
	//{{AFX_MSG_MAP(CSBASSet)
	ON_BN_CLICKED(IDC_SBASSet, OnSBASSet)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CSBASSet message handlers

BOOL CSBASSet::OnInitDialog() 
{
	CPropertyPage::OnInitDialog();
	
	if (!m_SBAS.Create(this))
		g_GlobalObj.UIWriteLog("m_SBAS.Create Error");
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

BOOL CSBASSet::OnSetActive() 
{
/*	if(!m_SBAS.UpdateUI())
		g_GlobalObj.UIWriteLog("m_SBAS.UpdateUI Error");
*/	
	return CPropertyPage::OnSetActive();
}

BOOL CSBASSet::OnKillActive() 
{
/*	if(!m_SBAS.UpdateMemberVariables())
		g_GlobalObj.UIWriteLog("m_SBAS.UpdateMemberVariables Error");
*/	
	
	return CPropertyPage::OnKillActive();
}

void CSBASSet::OnSBASSet() 
{
	if(!m_SBAS.Set())
		g_GlobalObj.UIWriteLog("m_SBAS.Set Error");
		
}
